using System;
using Castle.ActiveRecord;
using Karma.Framework.Core.Domain;

namespace Karma.Framework.Core.Metadata.Mapping
{
    [ActiveRecord("[Column]")]
    public class Column : DomainObject
    {
        [JoinedKey]
        public override Int64 Id { get; set; }

        [Property(NotNull = true)]
        public string Name { get; set; }

        [Property(NotNull = false)]
        public string Header { get; set; }

        [Property]
        public string Format { get; set; }

        [Property]
        public string Type { get; set; }

        [Property(NotNull = true)]
        public bool Hidden { get; set; }

        [Property(NotNull = true)]
        public bool Sortable { get; set; }
    }
}